package com.bootdo.system.service;

import java.util.List;
import java.util.Map;

import com.bootdo.app.dto.wx.TemplateMsgRequest;
import com.bootdo.common.utils.Query;
import com.bootdo.system.domain.TbJcLog;
import com.bootdo.system.domain.TbQdtx;
import com.bootdo.system.domain.TbWallet;
import com.bootdo.system.domain.TbWxUserMeetVip;
import com.bootdo.system.domain.TbWxUserMeeting;
import com.bootdo.system.domain.TbWxuser;

public interface WxUserService {
	
	List<TbWxuser> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int insert2update(TbWxuser table);
	
	List<Map<String, Object>> listJc(Map<String, Object> map);
	int countJc(Map<String, Object> map);
	
	List<Map<String,Object>> listJc2Dept(Map<String, Object> map);
	int countJc2Dept(Map<String, Object> map);
	
	int insertJc(TbJcLog table);

	TbWxuser getById(Integer id);
	TbWxuser selectByWxOpenId(String openId);

	int batchremove(Integer[] wxIds);

	int remove(Integer id);
	List<TbQdtx> getQdtxByStatus(int sfts);
	List<TbWxuser> getUserByOpenId(String openId);
	Map<String,Object> getUserByOpenId5(String openId,String openId2);
	TbWxuser getUserByOpenId2(String openId);
	
	int updateQdtx(Integer wxId,int status);
	
	TbWxuser getUserByUnioId(String unioId);
	
	TbWxuser getUserById(String openId);
	TbWxuser getUserById2(String openId);
	////如果存在unionid则通过unionid查找相应对象
	TbWxuser selectUserInfoByUnionid(String string);
	TbWxuser selectUserInfoByGzh(String string);
	List<Map<String, Object>> listJc2Dept2(Map<String, Object> params);

	int countJc2Dept2(Map<String, Object> params);

	List<Map<String, Object>> listJc2(Map<String, Object> params);

	int countJc2(Map<String, Object> params);
	
	
	List<TbWxUserMeetVip> listLqhy(Map<String, Object> map);
	
	int countLqhy(Map<String, Object> map);
	
	int updateLqhy(TbWxUserMeetVip table);
	
	
	List<Map<String, Object>> listJc2Log(Integer userId);

	int getNum(Integer intValue, String format2);

	int insertBatch(List<TbWxuser> newList);

	int selectLeaderNum(Integer leaderId,String appId);
	
//    String sendTemplateMsg2(String token,TemplateMsgRequest templateMsg);

}
